private["_obj","_type","_config","_positions","_iPos","_nearBy","_itemType","_itemTypes","_itemChances","_lootChance","_weights","_cntWeights","_index","_LootClass"];

_obj = 			_this select 0;
_type = 		typeOf _obj;
_config = 		configFile >> "CfgBuildingLoot" >> _type;
_positions =	[] + getArray (_config >> "lootPos");
//_itemTypes =	[] + getArray (_config >> "itemType"); // Default System
_lootChance =	getNumber (_config >> "lootChance");

//------------------//
//CUSTOM LOOT SPAWNS//
//------------------//
_itemTypes = []; //Initialise array
_itemChance = []; //Initialise array

diag_log "SPAWNING WITH CUSTOM LOOT";//Remove This line after testing

switch (_type) do { //Assign building classes
	case "Land_HouseV_1I4": { _LootClass = "Residential"; };
	case "Land_kulna": { _LootClass = "Residential"; };
	case "Land_Ind_Workshop01_04": { _LootClass = "Industrial"; };
	case "Land_hut06": { _LootClass = "Residential"; };
	case "Land_Hlidac_budka": { _LootClass = "Residential"; };
	case "Land_HouseV2_02_Interier": { _LootClass = "Residential"; };
	case "Land_A_Pub_01": { _LootClass = "Residential"; };
	case "Land_Shed_wooden": { _LootClass = "Residential"; };
	case "Land_HouseBlock_A1_1": { _LootClass = "Residential"; };
	case "Land_A_MunicipalOffice": { _LootClass = "Residential"; };
	case "Land_ruin_01": { _LootClass = "Residential"; };
	case "Land_HouseV2_04_interier": { _LootClass = "Residential"; };
	case "Land_HouseV2_01A": { _LootClass = "Residential"; };
	case "Land_psi_bouda": { _LootClass = "Residential"; };
	case "Land_KBud": { _LootClass = "Residential"; };
	case "Land_A_Castle_Bergfrit": { _LootClass = "Residential"; };
	case "Land_A_Castle_Stairs_A": { _LootClass = "Residential"; };
	case "Land_A_Castle_Gate": { _LootClass = "Residential"; };
	case "Land_sara_domek_zluty": { _LootClass = "Residential"; };
	case "Land_Church_01": { _LootClass = "Residential"; };
	case "Land_Church_03": { _LootClass = "Residential"; };
	case "Land_HouseB_Tenement": { _LootClass = "Residential"; };
	case "Land_Panelak": { _LootClass = "Residential"; };
	case "Land_Panelak2": { _LootClass = "Residential"; };
	case "Land_rail_station_big": { _LootClass = "Residential"; };
	case "Land_A_Office01": { _LootClass = "Residential"; };
	case "Land_A_Office02": { _LootClass = "Residential"; };
	case "Land_Ind_Workshop01_01": { _LootClass = "Industrial"; };
	case "Land_Ind_Garage01": { _LootClass = "Industrial"; };
	case "Land_Ind_Workshop01_02": { _LootClass = "Industrial"; };
	case "Land_Ind_Workshop01_L": { _LootClass = "Industrial"; };
	case "Land_Hangar_2": { _LootClass = "Industrial"; };
	case "Land_A_FuelStation_Build": { _LootClass = "Industrial"; };
	case "Land_Shed_Ind02": { _LootClass = "Industrial"; };
	case "Land_Misc_PowerStation": { _LootClass = "Industrial"; };
	case "Land_Shed_W01": { _LootClass = "Industrial"; };
	case "Land_Tovarna2": { _LootClass = "Industrial"; };
	case "Land_Ind_Vysypka": { _LootClass = "Industrial"; };
	case "Land_A_BuildingWIP": { _LootClass = "Industrial"; };
	case "Land_A_TVTower_Base": { _LootClass = "Industrial"; };
	case "Land_Misc_Cargo1Ao": { _LootClass = "Industrial"; };
	case "Land_Misc_Cargo1Bo": { _LootClass = "Industrial"; };
	case "Land_Nav_Boathouse": { _LootClass = "Industrial"; };
	case "Land_wagon_box": { _LootClass = "Industrial"; };
	case "Land_Rail_House_01": { _LootClass = "Industrial"; };
	case "Land_A_GeneralStore_01a": { _LootClass = "Supermarket"; };
	case "Land_A_GeneralStore_01": { _LootClass = "Supermarket"; };
	case "Land_A_Hospital": { _LootClass = "Hospital"; };
	case "MASH": { _LootClass = "Hospital"; };
	case "MASH_EP1": { _LootClass = "Hospital"; };
	case "USMC_WarfareBFieldhHospital": { _LootClass = "Hospital"; };
	case "Land_a_stationhouse": { _LootClass = "Military"; };
	case "Land_Mil_ControlTower": { _LootClass = "Military"; };
	case "Land_SS_hangar": { _LootClass = "Military"; };
	case "Land_Mil_House": { _LootClass = "Military"; };
	case "Camp": { _LootClass = "Military"; };
	case "CampEast": { _LootClass = "Military"; };
	case "CampEast_EP1": { _LootClass = "Military"; };
	case "Land_Mil_Barracks_i": { _LootClass = "MilitarySpecial"; };
	case "Land_Misc_deerstand": { _LootClass = "Hunting"; };
	case "Land_stodola_old_open": { _LootClass = "Farm"; };
	case "Land_Farm_Cowshed_a": { _LootClass = "Farm"; };
	case "Land_stodola_open": { _LootClass = "Farm"; };
	case "Land_Barn_W_01": { _LootClass = "Farm"; };
	case "Land_Barn_W_02": { _LootClass = "Farm"; };
	default { _LootClass = "Residential"; };
};

switch (_LootClass) do { //Find correct loot
	case "Residential": {
		_itemTypes = [
			["ItemSodaMdew","magazine"],
			["ItemWatch","generic"],
			["ItemCompass","generic"],
			["ItemMap","weapon"],
			["Makarov","weapon"],
			["Colt1911","weapon"],
			["ItemFlashlight","generic"],
			["ItemKnife","generic"],
			["ItemMatchbox","generic"],
			["","generic"],
			["LeeEnfield","weapon"],
			["revolver_EP1","weapon"],
			["M4SPR","weapon"],
			
			["DZ_Assault_Pack_EP1","object"], // 12
			["DZ_Czech_Vest_Puch","object"], // 12-0
			["DZ_ALICE_Pack_EP1","object"], // 16
			["DZ_TK_Assault_Pack_EP1","object"], // 16
			["DZ_British_ACU","object"], // 18
			
			["Winchester1866","weapon"],
			["WeaponHolder_ItemTent","object"],
			["","military"],
			["","trash"],
			["Crossbow_DZ","weapon"],
			["Binocular","weapon"],
			["PartWoodPile","magazine"],
			["Skin_Camo1_DZ","magazine"],
			["Skin_Sniper1_DZ","magazine"],
			["WeaponHolder_ItemCrowbar","object"],
			["MR43","weapon"], // Remember the last object doesn't not need a comma
			["RH_deagle","weapon"],//105
			["RH_Deagleg","weapon"],//106
			["RH_Deagles","weapon"],//107
			["RH_Deaglem","weapon"],//108
			["RH_Deaglemz","weapon"],//109
			["RH_Deaglemzb","weapon"],//110
			["RH_anac","weapon"],//112
			["RH_anacg","weapon"],//113
			["RH_bull","weapon"],//114
			["RH_python","weapon"],//115
			["RH_browninghp","weapon"],//116
			["RH_p226","weapon"],//117
			["RH_p226s","weapon"],//118
			["RH_ppk","weapon"],//119
			["RH_mk22","weapon"],//120
			["RH_mk22sd","weapon"],//121
			["RH_mk22v","weapon"],//122
			["RH_mk22vsd","weapon"],//123
			["AR-10","weapon"],//124
			["RH_ar10s","weapon"]//125
		 ];
		_itemChance = [
			0.01,
			0.15,
			0.05,
			0.03,
			0.13,
			0.05,
			0.03,
			0.08,
			0.06,
			2,
			0.06,
			0.04,
			0.02,
			0.05, //12
			0.04, // 12-0
			0.02, //16
			0.02, //16
			0.01, //18
			0.01,
			0.01,
			0.03,
			0.5,
			0.01,
			0.06,
			0.06,
			0.01,
			0.01,
			0.08,
			0.03,
			0.03,//105
			0.03,//106
			0.03,//107
			0.03,//108
			0.03,//109
			0.03,//110
			0.03,//111
			0.03,//112
			0.03,//113
			0.03,//114
			0.03,//115
			0.03,//116
			0.03,//117
			0.03,//118
			0.03,//119
			0.03,//120
			0.03,//121
			0.03,//122
			0.03, //123
			0.02, //124 
			0.01 //125
		];
	};
	case "Industrial": {
		_itemTypes = [
			["","generic"],
			["","trash"],
			["","military"],
			["WeaponHolder_PartGeneric","object"],
			["WeaponHolder_PartWheel","object"],
			["WeaponHolder_PartFueltank","object"],
			["WeaponHolder_PartEngine","object"],
			["WeaponHolder_PartGlass","object"],
			["WeaponHolder_PartVRotor","object"],
			["WeaponHolder_ItemJerrycan","object"],
			["WeaponHolder_ItemHatchet","object"],
			["ItemKnife","military"],
			["ItemToolbox","weapon"],
			["ItemWire","magazine"],
			["ItemSandbag","magazine"],
			["ItemTankTrap","magazine"],
			["20Rnd_9x39_SP5_VSS","magazine"],
			["ItemToolbox","weapon"] //was ItemEtool
			
		];
		_itemChance = [
			0.18,
			0.20,
			0.04,
			0.04,
			0.05,
			0.02,
			0.02,
			0.04,
			0.02,
			0.04,
			0.11,
			0.07,
			0.06,
			0.15,
			0.15,
			0.15,
			0.05,
			0.10
		];
	};
	case "Farm": {
		_itemTypes = [
			["WeaponHolder_ItemJerrycan","object"],
			["","generic"],
			["huntingrifle","weapon"],
			["LeeEnfield","weapon"],
			["Winchester1866","weapon"],
			["","trash"],
			["Crossbow_DZ","weapon"],
			["PartWoodPile","magazine"],
			["WeaponHolder_ItemHatchet","object"],
			["MR43","weapon"],
			["WeaponHolder_ItemMachete","object"],
			["M4SPR","weapon"],
			["RH_mk22sd","weapon"],//121
			["RH_mk22v","weapon"],//122
			["RH_mk22vsd","weapon"],//123
			["AR-10","weapon"],//124
			["RH_ar10s","weapon"],//125
			["RH_m4","weapon"]
		];
		_itemChance = [
			0.06,
			0.28,
			0.01,
			0.04,
			0.03,
			0.22,
			0.03,
			0.11,
			0.17,
			0.06,
			0.03,
			0.05,
			0.03,//121
			0.03,//122
			0.03,//123
			0.02,//124
			0.01,
			0.01 //125
		];
	};
	case "Supermarket": {
		_itemTypes = [
			["ItemWatch","generic"],
			["ItemCompass","generic"],
			["ItemMap","weapon"],
			["Makarov","weapon"],
			["Colt1911","weapon"],
			["ItemFlashlight","generic"],
			["ItemKnife","generic"],
			["ItemMatchbox","generic"],
			["","generic"],
			["LeeEnfield","weapon"],
			["revolver_EP1","weapon"],
			["huntingrifle","weapon"],
					
			["DZ_Assault_Pack_EP1","object"], // 12
			["DZ_Czech_Vest_Puch","object"], // 12-0
			["DZ_ALICE_Pack_EP1","object"], // 16
			["DZ_TK_Assault_Pack_EP1","object"], // 16
			["DZ_British_ACU","object"], // 18
			
			["Winchester1866","weapon"],
			["WeaponHolder_ItemTent","object"],
			["","food"],
			["","trash"],
			["Crossbow_DZ","weapon"],
			["Binocular","weapon"],
			["PartWoodPile","magazine"],
			["MR43","weapon"],
			["RH_deagle","weapon"],//105
			["RH_Deagleg","weapon"],//106
			["RH_Deagles","weapon"],//107
			["RH_Deaglem","weapon"],//108
			["RH_Deaglemz","weapon"],//109
			["RH_Deaglemzb","weapon"],//110
			["RH_anac","weapon"],//112
			["RH_anacg","weapon"],//113
			["RH_bull","weapon"],//114
			["RH_python","weapon"],//115
			["RH_browninghp","weapon"],//116
			["RH_p226","weapon"],//117
			["RH_p226s","weapon"],//118
			["RH_ppk","weapon"],//119
			["RH_mk22","weapon"],//120
			["RH_mk22sd","weapon"],//121
			["RH_mk22v","weapon"],//122
			["RH_mk22vsd","weapon"],//123
			["AR-10","weapon"],//124
			["RH_ar10s","weapon"] //125
		];
		_itemChance = [
			0.15,
			0.01,
			0.05,
			0.02,
			0.02,
			0.05,
			0.02,
			0.05,
			0.05,
			0.01,
			0.01,
			0.01,
			0.05, //12
			0.04, // 12-0
			0.02, //16
			0.02, //16
			0.01, //18
			0.01,
			0.01,
			0.2,
			0.15,
			0.06,
			0.02,
			0.02,
			0.01,
			0.03,//105
			0.03,//106
			0.03,//107
			0.03,//108
			0.03,//109
			0.03,//110
			0.03,//111
			0.03,//112
			0.03,//113
			0.03,//114
			0.03,//115
			0.03,//116
			0.03,//117
			0.03,//118
			0.03,//119
			0.03,//120
			0.03,//121
			0.03,//122
			0.03, //123
			0.02, //124 
			0.01 //125
		];
	};
	case "Hospital": {
		_itemTypes =	[
			["","trash"],
			["","hospital"],
			["MedBox0","object"]
		];
		_itemChance = [
			0.2,
			1,
			0.2
		];
	};
	case "Military": {
		_itemTypes = [
			["M9","weapon"],//1
			["M16A2","weapon"],//2
			["M16A2GL","weapon"],//3
			["M9SD","weapon"],//4
			["AK_74","weapon"],//5
			["M4A1_Aim","weapon"],//6
			["AKS_74_kobra","weapon"],//7
			["AKS_74_U","weapon"],//8
			["AK_47_M","weapon"],//9
			["M24","weapon"],//10
			["M1014","weapon"],//11
			["DMR","weapon"],//12
			["M4A1","weapon"],//13
			["M14_EP1","weapon"],//14
			["UZI_EP1","weapon"],//15
			["Remington870_lamp","weapon"],//16
			["glock17_EP1","weapon"],//17
			["MP5A5","weapon"],//18
			["MP5SD","weapon"],//19
			["M4A3_CCO_EP1","weapon"],//20
			["Binocular","weapon"],//21
			["ItemFlashlightRed","military"],//22
			["ItemKnife","military"],//23
			["ItemGPS","weapon"],//24
			["ItemMap","military"],//25
			["SVD_NSPU_EP1","weapon"], //lemons------------------//26
			["M4A3_RCO_GL_EP1","weapon"],//27
			["M4A1_Aim_camo","weapon"],//28
			["VSS_vintorez","weapon"],//29
			["M16A4_GL","weapon"],//30
			["BAF_L85A2_RIS_ACOG","weapon"],//31
			["20Rnd_762x51_B_SCAR","object"],//32
			["AK_107_pso","weapon"],   //new---------------//33
			["M16A4","weapon"],//34
			["M4A1_Aim_camo","weapon"],//35
			["BAF_L85A2_UGL_ACOG","weapon"],//36
			["m8_carbineGL","weapon"],//37
			["m8_sharpshooter","weapon"],//37.1
			["m8_SAW","weapon"],//37.2
			["100Rnd_556x45_BetaCMag","magazine"],//37.3
			["M24_des_EP1","weapon"],//38
			["DZ_ALICE_Pack_EP1","object"], // 39
			["DZ_TK_Assault_Pack_EP1","object"], // 40
			["DZ_British_ACU","object"], // 41
			["DZ_CivilBackpack_EP1","object"], // 42
			["DZ_Backpack_EP1","object"], // 43
			//Normal
			["","medical"],//44
			["","generic"],//45
			["","military"],//46
			//["Body","object"],
			["ItemSandbag","magazine"],//47 was ItemToolbox
			["ItemSandbag","magazine"],//48
			["Sa58P_EP1","weapon"],//49
			["Sa58V_EP1","weapon"],//50
			["BAF_L85A2_RIS_Holo","weapon"],//51
			["100Rnd_556x45_BetaCMag","magazine"],//52
			["NVGoggles","weapon"],//53
			//RHSMG---
			["RH_HK53","weapon"],//54---
			["RH_HK53aim","weapon"],//55
			["RH_HK53eot","weapon"],//56
			["RH_HK53RFX","weapon"],//57
			["RH_mp5a4aim","weapon"],//58
			["RH_mp5a4eot","weapon"],//59
			["RH_mp5a4rfx","weapon"],//60
			["RH_mp5a5","weapon"],//61
			["RH_mp5a5aim","weapon"],//62
			["RH_mp5a5eot","weapon"],//63
			["RH_mp5a5rfx","weapon"],//64
			["RH_mp5a5ris","weapon"],//65
			["RH_mp5a5risaim","weapon"],//66
			["RH_mp5a5riseot","weapon"],//67
			["RH_mp5a5eod","weapon"],//68
			["RH_mp5a5eodaim","weapon"],//69
			["RH_mp5a5eodeot","weapon"],//70
			["RH_mp5a5eodRFX","weapon"],//71
			["RH_mp5sd6aim","weapon"],//72
			["RH_mp5sd6eot","weapon"],//73
			["RH_mp5k","weapon"],//74
			["RH_mp5kpdwaim","weapon"],//75
			["RH_p90","weapon"],//76
			["RH_p90i","weapon"],//77
			["RH_p90aim","weapon"],//78
			["RH_P90sd","weapon"],//79
			["RH_P90isd","weapon"],//80
			["RH_p90sdeot","weapon"],//81
			["RH_umpaim","weapon"],//82
			["RH_umpRFX","weapon"],//83
			["RH_umpsdRFX","weapon"],//84
			["RH_krissRFX","weapon"],//85
			["RH_krisssd","weapon"],//86
			["RH_krisssdRFX","weapon"],//87
			["RH_uzig","weapon"],//88
			["RH_uzisd","weapon"],//89
			["RH_tmp","weapon"],//90
			["RH_tmpeot","weapon"],//91
			["RH_tmpsdaim","weapon"],//92
			["RH_pp2000","weapon"],//93
			["RH_pp2000eot","weapon"],//94
			["RH_mp7eot","weapon"],//95
			["RH_mp7sdeot","weapon"],//96
			//RH-SMG-mags
			["RH_46x30mm_40RND_Mag","magazine"],//97-mags
			["RH_46x30mm_40RND_SD_Mag","weapon"],//98
			["30Rnd_9x19_MP5","weapon"],//99
			["30Rnd_9x19_MP5SD","weapon"],//100
			["RH_57x28mm_50RND_Mag","weapon"],//101
			["RH_57x28mm_50RND_SD_Mag","weapon"],//102
			["RH_45ACP_30RND_Mag","weapon"],//103
			["RH_45ACP_30RND_SD_Mag","weapon"],//104
			//RH-PISTOLS
			["RH_deagle","weapon"],//105
			["RH_Deagleg","weapon"],//106
			["RH_Deagles","weapon"],//107
			["RH_Deaglem","weapon"],//108
			["RH_Deaglemz","weapon"],//109
			["RH_Deaglemzb","weapon"],//110
			["RH_anac","weapon"],//112
			["RH_anacg","weapon"],//113
			["RH_bull","weapon"],//114
			["RH_python","weapon"],//115
			["RH_browninghp","weapon"],//116
			["RH_p226","weapon"],//117
			["RH_p226s","weapon"],//118
			["RH_ppk","weapon"],//119
			["RH_mk22","weapon"],//120
			["RH_mk22sd","weapon"],//121
			["RH_mk22v","weapon"],//122
			["RH_mk22vsd","weapon"],//123
			["RH_usp","weapon"],//124
			["RH_uspsd","weapon"],//125
			["RH_uspm","weapon"],//126
			["RH_m1911","weapon"],//127
			["RH_m1911sd","weapon"],//128
			["RH_tt33","weapon"],//129
			["RH_mk2","weapon"],//130
			["RH_m93r","weapon"],//131
			["RH_m9","weapon"],//132
			["RH_m9c","weapon"],//133
			["RH_m9csd","weapon"],//134
			["RH_g18","weapon"],//135
			["RH_g17","weapon"],//136
			["RH_g17sd","weapon"],//137
			["RH_g19t","weapon"],//138
			["RH_vz61","weapon"],//139
			["RH_tec9","weapon"],//140
			["RH_g17","weapon"],//141
			["RH_muzi","weapon"],//142
			//rh-mgs
			["RH_AK102","weapon"],//143
			["RH_AK102GL","weapon"],//144
			["RH_M4C","weapon"],//145
			["RH_M4CS","weapon"],//146
			["RH_M4CSAIM","weapon"],//147
			["RH_M4CSEOTECH","weapon"],//148
			["RH_M4CSACOG","weapon"],//149
			["RH_M4CACOG","weapon"],//150
			["RH_M4CTSDGLEOTECH","weapon"],//151
			["RH_muzi","weapon"],//152
			//RH_AKS
			["RH_pm","weapon"],//153
			["RH_pmsd","weapon"],//154
			["RH_aps","weapon"],//155
			["RH_apssd","weapon"],//156
			["RH_ak47","weapon"],//157
			["RH_akm","weapon"],//158
			["RH_aks47b","weapon"],//159
			["RH_aks47g","weapon"],//160
			["RH_akmsp","weapon"],//161
			["RH_akmssd","weapon"],//162
			["RH_ak47gl","weapon"],//163
			["RH_an94","weapon"],//164
			["RH_an94gl","weapon"],//165
			["RH_SVD","weapon"],//166
			["RH_SVDb","weapon"],//167
			["RH_SVDs","weapon"],//168
			["RH_SVU","weapon"],//169
			["RH_aks74uk","weapon"],//170
			["RH_aks74usd","weapon"],//171
			["RH_aks74usdk","weapon"],//172
			["RH_aks74upt","weapon"],//173
			["RH_rk95","weapon"],//174
			["RH_Rk95sd","weapon"],//175
			["RH_Rk95ag","weapon"],//176
			["RH_bizon","weapon"],//177
			["RH_bizonk","weapon"],//178
			["RH_bizonsdk","weapon"],//179
			["RH_ak74m","weapon"],//180
			["RH_ak74mgl","weapon"],//181
			["RH_ak74mglsp","weapon"],//182
			["RH_ak74m1p29","weapon"],//183
			["RH_aks74m","weapon"],//184
			["RH_aks74mk","weapon"],//185
			["RH_ak74gl","weapon"],//186
			["RH_ak74kgl","weapon"],//187
			["RH_ak74sp","weapon"],//188
			["RH_aks74","weapon"],//189
			["RH_aks74kgl","weapon"],//190
			["RH_aks74sp","weapon"],//191
			["RH_oc14sp","weapon"],//192
			["RH_gr1sp","weapon"],//193
			["RH_ak103sp","weapon"],//194
			["RH_ak103_1p29","weapon"],//195
			["RH_ak104glsp","weapon"],//196
			["RH_aks74p","weapon"],//197
			["RH_aks74pglsp","weapon"],//198
			["RH_aks74pgl1p29","weapon"],//199
			["RH_ak105gl","weapon"],//200
			["RH_ak105k","weapon"],//201
			["RH_ak105kgl","weapon"],//202
			["RH_ak105_1p29","weapon"],//203
			["RH_AK107","weapon"],//204
			["RH_AK107k","weapon"],//205
			["RH_AK107sp","weapon"],//206
			["RH_AK107_1p29","weapon"],//207
			["RH_asval","weapon"],//208
			["RH_asvalk","weapon"],//209
			["RH_rpk74","weapon"],//210
			["RH_aks74uptk","weapon"],//211
			["RH_30Rnd_545x39_AKSU_mag","magazine"] //212
		];
		_itemChance = [
			0.05,//1
			0.05,//2
			0.01,//3
			0.02,//4
			0.15,//5
			0.01,//6
			0.08,//7
			0.05,//8
			0.05,//9
			0.01,//10
			0.10,//11
			0.01,//12
			0.02,//13
			0.01,//14
			0.05,//15
			0.08,//16
			0.10,//17
			0.04,//18
			0.02,//19
			0.01,//20
			0.06,//21
			0.10,//22
			0.10,//23
			0.01,//24
			0.05,//25
			0.02,//lemons--------------------------//26
			0.09,//27
			0.01,//28
			0.05,//29
			0.02,//30
			0.02,//31
			0.04,//32
			0.10, //new------//33
			0.06,//34
			0.09,//35
			0.07,//36
			0.04,//37
			0.04,//37.1
			0.04,//37.2
			0.04,//37.3
			0.01,//38
			//Bags
			0.08, //39
			0.08, //40
			0.06, //41
			0.02, //42
			0.01, //43 //bag end
			0.10, //44
			1.00, //45
			2.50, //46
			
			0.05,//47
			0.02,//48
			0.03,//49
			0.03,//50
			0.01,//51
			0.2,//52
			0.05,//53
			0.03,//55
			0.03,//56
			0.03,//57
			0.03,//58
			0.03,//59
			0.03,//60
			0.03,//61
			0.03,//62
			0.03,//63
			0.03,//64
			0.03,//65
			0.03,//66
			0.03,//67
			0.03,//68
			0.03,//69
			0.03,//70
			0.03,//71
			0.03,//72
			0.03,//73
			0.03,//74
			0.03,//75
			0.03,//76
			0.03,//77
			0.03,//78
			0.03,//79
			0.03,//80
			0.03,//81
			0.03,//82
			0.03,//83
			0.03,//84
			0.03,//85
			0.03,//86
			0.03,//87
			0.03,//88
			0.03,//89
			0.03,//90
			0.03,//91
			0.03,//92
			0.03,//93
			0.03,//94
			0.03,//95
			0.03,//96
			0.03,//97
			0.03,//98
			0.03,//99
			0.03,//100
			0.03,//101
			0.03,//102
			0.03,//103
			0.03,//104-rh pistosl
			0.03,//105
			0.03,//106
			0.03,//107
			0.03,//108
			0.03,//109
			0.03,//110
			0.03,//111
			0.03,//112
			0.03,//113
			0.03,//114
			0.03,//115
			0.03,//116
			0.03,//117
			0.03,//118
			0.03,//119
			0.03,//120
			0.03,//121
			0.03,//122
			0.03,//123
			0.03,//124
			0.03,//125
			0.03,//126
			0.03,//127
			0.03,//128
			0.03,//129
			0.03,//130
			0.03,//131
			0.03,//132
			0.03,//133
			0.03,//134
			0.03,//135
			0.03,//136
			0.03,//137
			0.03,//138
			0.03,//139
			0.03,//140
			0.03,//141
			0.03,//142
			0.03,//143
			0.03,//144
			0.03,//145
			0.02,//146
			0.01,//147
			0.02,//148
			0.01,//149
			0.02,//151
			0.01,//152
			0.01,//153
			0.03,//155
			0.03,//156
			0.03,//157
			0.03,//158
			0.03,//159
			0.03,//160
			0.03,//161
			0.03,//162
			0.03,//163
			0.03,//167
			0.03,//168
			0.03,//170
			0.03,//171
			0.03,//172
			0.03,//173
			0.03,//174
			0.03,//175
			0.03,//176
			0.03,//177
			0.03,//178
			0.03,//179
			0.03,//180
			0.03,//181
			0.03,//182
			0.03,//183
			0.03,//184
			0.03,//185
			0.03,//186
			0.03,//187
			0.03,//188
			0.03,//189
			0.03,//190
			0.03,//191
			0.03,//192
			0.03,//193
			0.03,//194
			0.03,//195
			0.03,//196
			0.03,//197
			0.03,//199
			0.03,//200
			0.03,//201
			0.03,//202
			0.03,//203
			0.03,//204
			0.03,//205
			0.03,//206
			0.03,//207
			0.03,//208
			0.03,//209
			0.03,//210
			0.03,//211
			0.03//212
		];
	};
	case "MilitarySpecial": {
		_itemTypes = [
			//DAYZ-STUFF
			["AmmoBoxSmall_556","object"],//01
			["AmmoBoxSmall_762","object"],//02
			["NVGoggles","weapon"],//03
			["Binocular","weapon"],//04
			["ItemFlashlightRed","military"],//05
			["ItemKnife","military"],//06
			["ItemGPS","weapon"],//07
			["ItemMap","military"],//08
			["Binocular_Vector","military"],//09
			["DZ_ALICE_Pack_EP1","object"],//10
			["DZ_TK_Assault_Pack_EP1","object"],//11
			["DZ_British_ACU","object"],//12
			["DZ_CivilBackpack_EP1","object"],//13
			["DZ_Backpack_EP1","object"],//14
			["","medical"],//15
			["","generic"],//16
			["","military"],//17
			["PipeBomb","magazine"],//18
			
			//RH-m4s
			["RH_ar10","weapon"],//19
			["RH_ar10s","weapon"],//20
			["RH_m16a1","weapon"],//21
			["RH_m16a1gl","weapon"],//22
			["RH_m16a1sgl","weapon"],//23
			["RH_m16a1s","weapon"],//24
			["RH_m16a2aim","weapon"],//26
			["RH_m16a2gl","weapon"],//27
			["RH_m16a2glaim","weapon"],//28
			["RH_m16a2sgl","weapon"],//29
			["RH_m16a2s","weapon"],//30
			["RH_m16a3","weapon"],//31
			["RH_m16a3aim","weapon"],//32
			["RH_m16a3gl","weapon"],//33
			["RH_m16a3sgl","weapon"],//34
			["RH_m16a3s","weapon"],//35
			["RH_m16a4","weapon"],//36
			["RH_m16a4acog","weapon"],//37
			["RH_m16a4eotech","weapon"],//38
			["RH_m16a4gl","weapon"],//39
			["RH_m16a4glacog","weapon"],//40
			["RH_m16a4glaim","weapon"],//41
			["RH_m16a4gleotech","weapon"],//42
			["RH_M249","weapon"],//43
			["RH_M249acog","weapon"],//44
			["RH_M249elcan","weapon"],//45
			["RH_M249p","weapon"],//46
			["RH_M249pacog","weapon"],//47
			["RH_M249pelcan","weapon"],//48
			["RH_m4","weapon"],//49
			["RH_m4aim","weapon"],//50
			["RH_m4eotech","weapon"],//51
			["RH_m4gl","weapon"],//52
			["RH_m4glacog","weapon"],//53
			["RH_m4glaim","weapon"],//54
			["RH_m4gleotech","weapon"],//55
			["RH_m4r","weapon"],//56
			["RH_m4a1","weapon"],//57
			["RH_m4a1acog","weapon"],//58
			["RH_m4a1aim","weapon"],//59
			["RH_M4aim_wdl","weapon"],//60
			["RH_m4a1eotech","weapon"],//61
			["RH_M4gleotech_wdl","weapon"],//62
			["RH_m4sdgl","weapon"],//63
			["RH_m4sdglaim","weapon"],//64
			["RH_m4sdgleotech","weapon"],//65
			["RH_M4sdgleotech_wdl","weapon"],//66
			["RH_m4m","weapon"],//67
			["RH_m4macog","weapon"],//68
			["RH_m4maim","weapon"],//69
			["RH_m4meotech","weapon"],//70
			["RH_m4a1r","weapon"],//71
			["RH_m4sbracog","weapon"],//72
			["RH_m4sbraim","weapon"],//73
			["RH_m4sbreotech","weapon"],//74
			["RH_m4sd","weapon"],//75
			["RH_m4sdaim","weapon"],//76
			["RH_m4sdeotech","weapon"],//77
			["RH_mk12","weapon"],//78
			["RH_mk12sd","weapon"],//79
			["RH_mk12mod1","weapon"],//80
			["RH_mk12","weapon"],//81
			["RH_mk12","weapon"],//82
			["RH_mk12","weapon"],//83
			["RH_mk12mod1sd","weapon"],//84
			["RH_Mk48mod1","weapon"],//85
			["RH_Mk48mod1acog","weapon"],//86
			["RH_Mk48mod1elcan","weapon"],//87
			["RH_m4a1gl","weapon"],//88
			["RH_m4a1gleotech","weapon"],//89
			["RH_m4a1glaim","weapon"],//90
			["RH_m4a1glacog","weapon"],//91
			["100Rnd_556x45_BetaCMag","military"],//92
			
			//RH-mgs
			["RH_M4C","weapon"],//93
			["RH_M4CS","weapon"],//94
			["RH_M4CSAIM","weapon"],//95
			["RH_M4CSEOTECH","weapon"],//96
			["RH_M4CSACOG","weapon"],//97
			["RH_M4CT","weapon"],//98
			["RH_M4CAIM","weapon"],//99
			["RH_M4CAIM","weapon"],//100
			["RH_M4CEOTECH","weapon"],//101
			["RH_M4CACOG","weapon"],//102
			["RH_M4CTSD","weapon"],//103
			["RH_M4CTSDAIM","weapon"],//104
			["RH_M4CTSDEOTECH","weapon"],//105
			["RH_M4CTSDACOG","weapon"],//106
			["RH_M4CGL","weapon"],//107
			["RH_M4CGLAIM","weapon"],//108
			["RH_M4CGLEOTECH","weapon"],//109
			["RH_M4CGLACOG","weapon"],//110
			["RH_M4CTSDGL","weapon"],//111
			["RH_M4CTSDGLAIM","weapon"],//112
			["RH_M4CTSDGLACOG","weapon"],//113
			["RH_M4CMK","weapon"],//114
			["RH_5Rnd_B_Beneli_Pellets","magazine"],//115 //ammo
			["RH_M4CMKAIM","weapon"],//116
			["RH_M4CMKACOG","weapon"],//117
			["RH_M4CMKEOTECH","weapon"],//118
			["RH_M14EBR","weapon"],//119
			["RH_M14EBRSP","weapon"],//120
			["RH_M14EBR_SD","weapon"],//121
			["RH_M14EBRGC_SD","weapon"],//122
			["RH_MK21A5","weapon"],//123
			["RH_MK21A5SD","weapon"],//124
			["RH_MK14","weapon"],//125
			["RH_MK14AIM","weapon"],//126
			["RH_MK14EOTECH","weapon"],//127
			["RH_MK14ACOG","weapon"],//128
			["RH_MK14SD","weapon"],//129
			["RH_MK14SDAIM","weapon"],//130
			["RH_MK14SDEOTECH","weapon"],//131
			["RH_SCARL","weapon"],//132
			["RH_SCARL_AIM","weapon"],//133
			["RH_SCARL_DOC","weapon"],//134
			["RH_SCARL_EOTECH","weapon"],//135
			["RH_SCARL_ACOG","weapon"],//136
			["RH_SCARL_MK4","weapon"],//137
			["RH_SCARL_GL","weapon"],//138
			["RH_SCARL_GL_AIM","weapon"],//139
			["RH_SCARL_GL_EOTECH","weapon"],//140
			["RH_SCARL_GL_ACOG","weapon"],//141
			["RH_SCARLB_GL_ACOG","weapon"],//142
			["RH_SCARL_SD_AIM","weapon"],//143
			["RH_SCARL_SD_DOC","weapon"],//144
			["RH_SCARL_SD_EOTECH","weapon"],//145
			["RH_SCARLB_SD_EOTECH","weapon"],//146
			["RH_SCARL_SD_ACOG","weapon"],//147
			["RH_SCARL_SD_GL_AIM","weapon"],//148
			["RH_SCARLB_SD_GL_AIM","weapon"],//149
			["RH_SCARL_SD_GL_EOTECH","weapon"],//150
			["RH_SCARL_SD_GL_ACOG","weapon"],//151
			["RH_SCARHB_EOTECH","weapon"],//152
			["RH_SCARH_ACOG","weapon"],//153
			["RH_SCARH_SPECTERDR","weapon"],//154
			["RH_SCARH_GL","weapon"],//155
			["RH_SCARH_GL_AIM","weapon"],//156
			["RH_SCARH_GL_EOTECH","weapon"],//157
			["RH_SCARH_GL_ACOG","weapon"],//158
			["RH_SCARHB_GL_ACOG","weapon"],//159
			["RH_SCARH_GL_SPECTERDR","weapon"],//160
			["RH_SCARH_SD_AIM","weapon"],//161
			["RH_SCARHB_SD_AIM","weapon"],//162
			["RH_SCARH_SD_ACOG","weapon"],//163
			["RH_SCARH_SD_GL_EOTECH","weapon"],//164
			["RH_SCARHB_SD_GL_EOTECH","weapon"],//165
			["RH_SCARAK","weapon"],//166
			["RH_SCARAKAIM","weapon"],//167
			["RH_SCARAKEOTECH","weapon"],//168
			["RH_SCARAKACOG","weapon"],//169
			["RH_XM8","weapon"],//170
			["RH_XM8D","weapon"],//171
			["RH_XM8GL","weapon"],//172
			["RH_XM8DGL","weapon"],//173
			["RH_XM8C","weapon"],//174
			["RH_XM8DC","weapon"],//175
			["RH_XM8SH","weapon"],//176
			["RH_XM8DSH","weapon"],//177
			["RH_XM8SAW","weapon"],//178
			["RH_XM8DSAW","weapon"],//179
			
			//RH_M14S
			["RH_m14","weapon"],//180
			["RH_m14acog","weapon"],//181
			["RH_m14aim","weapon"],//182
			["RH_m14eot","weapon"],//183
			["RH_m21","weapon"],//184
			["RH_sc2","weapon"],//185
			["RH_sc2acog","weapon"],//186
			["RH_sc2aim","weapon"],//187
			["RH_sc2eot","weapon"],//188
			["RH_sc2shd","weapon"],//189
			["RH_sc2sp","weapon"],//190
			["RH_m1s","weapon"],//191
			["RH_m1sacog","weapon"],//192
			["RH_m1seot","weapon"],//193
			["RH_m1ssp","weapon"],//194
			["RH_m1stacog","weapon"],//195
			["RH_m1staim","weapon"],//196
			["RH_m1steot","weapon"],//197
			["RH_m1stshd","weapon"],//198
			["RH_m1stsp","weapon"],//199
			
			//normal_DAYZ_SNIPERS
			["DMR","weapon"],//200
			["M24","weapon"],//201
			["M40A3","weapon"],//202
			["M4SPR","weapon"],//203
			["SVD_CAMO","weapon"],//204
			["M24_des_EP1","weapon"],//205
			["SCAR_H_LNG_Sniper_SD","weapon"],//206
			["SCAR_H_LNG_Sniper","weapon"],//207
			["M110_NVG_EP1","weapon"],//208
			["SVD_des_EP1","weapon"],//209
			["SVD_NSPU_EP1","weapon"],//210
			
			//normal-dayz rifels
			["SCAR_H_STD_EGLM_Spect","weapon"],//211
			["SCAR_L_STD_EGLM_RCO","weapon"],//212
			["SCAR_L_CQC","weapon"],//213
			["SCAR_L_CQC_CCO_SD","weapon"],//214
			["SCAR_L_CQC_EGLM_Holo","weapon"],//215
			["SCAR_L_CQC_Holo","weapon"],//216
			["SCAR_L_STD_HOLO","weapon"],//217
			["SCAR_L_STD_Mk4CQT","weapon"],//218
			["SCAR_H_CQC_CCO_SD","weapon"],//219
			["SCAR_H_CQC_CCO","weapon"],//220
			["M14_EP1","weapon"],//221
			["VSS_vintorez ","weapon"],//222
			["M4A1_HWS_GL_SD_Camo ","weapon"],//223
			["AK_107_pso","weapon"],//224
			["AKS_74_pso","weapon"],//225
			
			//normal-machineguns
			["Mk_48","weapon"],//226
			["M249","weapon"],//227
			["Pecheneg","weapon"],//228
			["PK","weapon"],//229
			["RPK_74","weapon"],//230
			["MG36","weapon"],//231
			["M60A4_EP1","weapon"],//232
			["m240_scoped_EP1","weapon"],//233
			["M249_EP1","weapon"],//234
			["M249_m145_EP1","weapon"],//235
			["MG36_camo","weapon"],//236
			["Mk13_EP1","weapon"],//237
			["M79_EP1","weapon"],//238
			["M32_EP1","weapon"],//238
		
			//Snipers
			["BAF_LRR_scoped_W","weapon"],//239
			["BAF_LRR_scoped","weapon"],//240
			["BAF_L86A2_ACOG","weapon"],//241
			//baf
			["BAF_L85A2_UGL_SUSAT","weapon"],//242
			["BAF_L85A2_UGL_ACOG","weapon"],//243
			["BAF_L85A2_RIS_Holo","weapon"],//244#
			//FHQ-Remington
			//black
			["FHQ_ACR_BLK_IRN","weapon"],//245
			["FHQ_ACR_BLK_IRN_F","weapon"],//246
			["FHQ_ACR_BLK_CCO","weapon"],//247
			["FHQ_ACR_BLK_CCO_GL_F","weapon"],//248
			["FHQ_ACR_BLK_CCO_GL_SD","weapon"],//249
			["FHQ_ACR_BLK_CCO_GL_SD_F","weapon"],//250
			["FHQ_ACR_BLK_CCO_SD","weapon"],//251
			["FHQ_ACR_BLK_CCO_SD_F","weapon"],//252
			["FHQ_ACR_BLK_G33_F","weapon"],//253
			["FHQ_ACR_BLK_G33","weapon"],//254
			["FHQ_ACR_BLK_G33_GL_F","weapon"],//255
			["FHQ_ACR_BLK_G33_GL_SD_F","weapon"],//256
			["FHQ_ACR_BLK_G33_SD_F","weapon"],//257
			["FHQ_ACR_BLK_HAMR_F","weapon"],//258
			["FHQ_ACR_SNW_HAMR_GL_F","weapon"],//259
			["FHQ_ACR_BLK_HAMR_GL_SD_F","weapon"],//260
			["FHQ_ACR_BLK_HAMR_SD_F","weapon"],//261
			["FHQ_ACR_BLK_HWS_GL","weapon"],//262
			["FHQ_ACR_BLK_HWS_GL_F","weapon"],//263
			["FHQ_ACR_BLK_HWS_GL_SD_F","weapon"],//264
			["FHQ_ACR_BLK_HWS_SD_F","weapon"],//265
			["FHQ_ACR_BLK_IRN_GL_F","weapon"],//266
			["FHQ_ACR_BLK_IRN_GL","weapon"],//267
			["FHQ_ACR_BLK_IRN_GL_SD_F","weapon"],//268
			["FHQ_ACR_BLK_RCO","weapon"],//269
			["FHQ_ACR_BLK_RCO_F","weapon"],//270
			["FHQ_ACR_BLK_RCO_G_F","weapon"],//271
			["FHQ_ACR_BLK_RCO_GL_SD","weapon"],//272
			["FHQ_ACR_BLK_RCO_GL_SD_F","weapon"],//273
			["FHQ_ACR_BLK_IRN_SD_F","weapon"],//274
			["FHQ_MSR_DESERT","weapon"],//275
			["FHQ_MSR_NV_DESERT","weapon"],//276
			["FHQ_MSR_NV_SD_DESERT","weapon"],//277
			["FHQ_MSR_SD_DESERT","weapon"],//278
			["FHQ_RSASS_TAN","weapon"],//279
			["FHQ_RSASS_SD_TAN","weapon"],//280
			["FHQ_XM2010_DESERT","weapon"],//281
			["FHQ_XM2010_NV_DESERT","weapon"],//282
			["FHQ_XM2010_NV_SD_DESERT","weapon"],//283
			["FHQ_XM2010_SD_DESERT","weapon"],//284
			["FHQ_ACR_WDL_IRN","weapon"],//285
			["FHQ_ACR_SNW_IRN","weapon"],//286
			["FHQ_ACR_TAN_IRN","weapon"]//287
						
			
		];
		_itemChance = [
			0.05,//1
			0.05,//2
			0.03,//3
			0.05,//4
			0.15,//5
			0.01,//6
			0.01,//7
			0.01,//8
			0.02,//9
			0.05,//10
			0.04,//11
			0.03,//12
			0.02,//13
			0.01,//14
			0.02,//15
			0.02,//16
			0.25,//17
			0.01,//18
			0.02,//19
			0.01,//20
			0.06,//21
			0.10,//22
			0.10,//23
			0.01,//24
			0.05,//25
			0.02,//26
			0.09,//27
			0.01,//28
			0.05,//29
			0.02,//30
			0.02,//31
			0.02,//32
			0.02,//33
			0.02,//34
			0.02,//35
			0.02,//36
			0.04,//37
			0.01,//38
			0.02,//39
			0.02, //40
			0.02, //41
			0.02, //42
			0.02, //43 
			0.02, //44
			0.02, //45
			0.01, //46
			0.05,//47
			0.02,//48
			0.03,//49
			0.03,//50
			0.01,//51
			0.2,//52
			0.05,//53
			0.03,//55
			0.03,//56
			0.03,//57
			0.03,//58
			0.03,//59
			0.03,//60
			0.03,//61
			0.03,//62
			0.03,//63
			0.03,//64
			0.03,//65
			0.03,//66
			0.03,//67
			0.03,//68
			0.03,//69
			0.03,//70
			0.03,//71
			0.03,//72
			0.03,//73
			0.03,//74
			0.03,//75
			0.03,//76
			0.03,//77
			0.03,//78
			0.03,//79
			0.03,//80
			0.03,//81
			0.03,//82
			0.03,//83
			0.03,//84
			0.03,//85
			0.03,//86
			0.03,//87
			0.03,//88
			0.03,//89
			0.03,//90
			0.03,//91
			0.03,//92
			0.03,//93
			0.03,//94
			0.03,//95
			0.03,//96
			0.03,//97
			0.03,//98
			0.03,//99
			0.03,//100
			0.03,//101
			0.03,//102
			0.03,//103
			0.03,//104
			0.03,//105
			0.03,//106
			0.03,//107
			0.03,//108
			0.03,//109
			0.03,//110
			0.03,//111
			0.03,//112
			0.03,//113
			0.03,//114
			0.03,//115
			0.03,//116
			0.03,//117
			0.03,//118
			0.03,//119
			0.03,//120
			0.03,//121
			0.03,//122
			0.03,//123
			0.03,//124
			0.03,//125
			0.03,//126
			0.03,//127
			0.03,//128
			0.03,//129
			0.03,//130
			0.03,//131
			0.03,//132
			0.03,//133
			0.03,//134
			0.03,//135
			0.03,//136
			0.03,//137
			0.03,//138
			0.03,//139
			0.03,//140
			0.03,//141
			0.03,//142
			0.03,//143
			0.03,//144
			0.03,//145
			0.02,//146
			0.01,//147
			0.02,//148
			0.01,//149
			0.02,//151
			0.01,//152
			0.01,//153
			0.03,//155
			0.03,//156
			0.03,//157
			0.03,//158
			0.03,//159
			0.03,//160
			0.03,//161
			0.03,//162
			0.03,//163
			0.03,//167
			0.03,//168
			0.03,//170
			0.03,//171
			0.03,//172
			0.03,//173
			0.03,//174
			0.03,//175
			0.03,//176
			0.03,//177
			0.03,//178
			0.03,//179
			0.03,//180
			0.03,//181
			0.03,//182
			0.03,//183
			0.03,//184
			0.03,//185
			0.03,//186
			0.03,//187
			0.03,//188
			0.03,//189
			0.03,//190
			0.03,//191
			0.03,//192
			0.03,//193
			0.03,//194
			0.03,//195
			0.03,//196
			0.03,//197
			0.03,//199
			0.03,//200
			0.03,//201
			0.03,//202
			0.03,//203
			0.03,//204
			0.03,//205
			0.03,//206
			0.03,//207
			0.03,//208
			0.03,//209
			0.03,//210
			0.03,//211
			0.03,//212
			0.03,//213
			0.03,//214
			0.03,//215
			0.03,//216
			0.03,//217
			0.03,//218
			0.03,//219
			0.03,//220
			0.03,//221
			0.03,//222
			0.03,//223
			0.03,//224
			0.03,//225
			0.03,//226
			0.03,//227
			0.03,//228
			0.03,//229
			0.03,//230
			0.03,//231
			0.03,//232
			0.03,//233
			0.03,//234
			0.03,//235
			0.03,//236
			0.03,//237
			0.03,//238
			0.01,//239
			0.01,//240
			0.03,//241
			0.03,//242
			0.03,//243
			0.03,//244
			0.03,//245
			0.03,//246
			0.03,//247
			0.03,//248
			0.03,//249
			0.03,//251
			0.03,//252
			0.03,//253
			0.03,//254
			0.03,//255
			0.03,//256
			0.03,//257
			0.03,//258
			0.03,//259
			0.03,//260
			0.03,//261
			0.03,//262
			0.03,//263
			0.03,//264
			0.03,//265
			0.03,//266
			0.03,//267
			0.03,//268
			0.03,//269
			0.03,//270
			0.03,//271
			0.03,//272
			0.03,//273
			0.03,//274
			0.03,//275
			0.03,//276
			0.01,//277
			0.02,//278
			0.01,//279
			0.01,//280
			0.02,//281
			0.01,//282
			0.02,//283
			0.01,//284
			0.02,//285
			0.01,//286
			0.02//287
			
			
		];
	};
	case "Hunting": {
		_itemTypes = [
			["ItemMap","weapon"],
			["ItemFlashlight","generic"],
			["ItemKnife","generic"],
			["ItemMatchbox","generic"],
			["Crossbow_DZ","weapon"],
			["","military"],
			["WeaponHolder_ItemMachete", "object"],
			["huntingrifle","weapon"],
			["M9","weapon"],
			["FHQ_ACR_WDL_IRN","weapon"],
			["","hunter"]
		];
		_itemChance = [
			0.08,
			0.05,
			0.04,
			0.06,
			0.03,
			2.00,
			0.03,
			0.40,
			0.30,
			0.08,
			3.00
		];
	};
};
//------------------//
//CUSTOM LOOT SPAWNS//
//------------------//
{
	if ((random 1) < _lootChance) then {
		_iPos = _obj modelToWorld _x;
		_nearBy = nearestObjects [_iPos, ["WeaponHolder","WeaponHolderBase"], 1];
		if (count _nearBy == 0) then {
			private["_index"];
			_weights = [_itemTypes,_itemChance] call fnc_buildWeightedArray;
			_index = _weights call BIS_fnc_selectRandom;
			_itemType = _itemTypes select _index;
			[_itemType select 0, _itemType select 1 , _iPos, 0.0]  call spawn_loot;
		};
	};
} forEach _positions;